package bean;

import java.util.*;

/**
 * Description:
 * Created by 4790k on 2017/9/19.
 */
public class Student {
    private int id;
    private String name;
    private int age;
    private Student classmate;
    private String[] courseArray={"English","Math"};
    private List<String> courseList=new ArrayList<String>();
    private Map<String,String> courseMap=new HashMap<String, String>();
    private Date birthday=new Date();

    public Student() {
        id=1;
        name="nsl";
        age=34;
        classmate=null;
        courseList.add("English");
        courseList.add("Math");
        courseMap.put("a","English");
        courseMap.put("b","Math");
    }

    @Override
    public String toString() {
        return "bean.Student{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", classmate=" + classmate +
                ", courseArray=" + Arrays.toString(courseArray) +
                ", courseList=" + courseList +
                ", courseMap=" + courseMap +
                ", birthday=" + birthday +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Student getClassmate() {
        return classmate;
    }

    public void setClassmate(Student classmate) {
        this.classmate = classmate;
    }

    public String[] getCourseArray() {
        return courseArray;
    }

    public void setCourseArray(String[] courseArray) {
        this.courseArray = courseArray;
    }

    public List<String> getCourseList() {
        return courseList;
    }

    public void setCourseList(List<String> courseList) {
        this.courseList = courseList;
    }

    public Map<String, String> getCourseMap() {
        return courseMap;
    }

    public void setCourseMap(Map<String, String> coureseMap) {
        this.courseMap = coureseMap;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }
}
